package com.msk.third.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Author zlf
 * @Date 2023/5/4 18:03
 */
@Configuration
@ConfigurationProperties(prefix = "aliapi.oss")
public class AliOssConfig {

    /**
     * OSS对外服务的访问域名
     */
    private String endpoint;

    /**
     * accessKeyId
     */
    private String accessKeyId;

    /**
     * accessKeySecret
     */
    private String accessKeySecret;

    /**
     * bucketName桶空间
     */
    private String bucketName;

    /**
     * 文件存储目录
     */
    private String fileDir;

    /**
     * OSS访问前缀
     */
    private String prefix;

    /**
     * STS接入地址
     */
    private String stsEndPoint;

    /**
     * 角色ARN
     */
    private String roleArn;

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getFileDir() {
        return fileDir;
    }

    public void setFileDir(String filedDir) {
        this.fileDir = filedDir;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getStsEndPoint() {
        return stsEndPoint;
    }

    public void setStsEndPoint(String stsEndPoint) {
        this.stsEndPoint = stsEndPoint;
    }

    public String getRoleArn() {
        return roleArn;
    }

    public void setRoleArn(String roleArn) {
        this.roleArn = roleArn;
    }
}
